<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/3 0003
  Time: 19:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
    <title>商品保存页面</title>
</head>
<body>
<h1>商品保存页面</h1>
<%--theme="simple"表示不采用struts自己的默认样式--%>
<s:form action="product_save" method="POST" namespace="/" theme="simple">
    <table border="1" cellspacing="0" cellpadding="0" width="400">
        <tr>
            <td>商品名称</td>
            <td><s:textfield name="pname"></s:textfield></td>
        </tr>
        <tr>
            <td>商品价格</td>
            <td><s:textfield name="price"></s:textfield></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="提交">
            </td>
        </tr>
    </table>
</s:form>
</body>
</html>
